package com.example.sale.True;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("productlist")
public class Product {
    @Excel(name = "编号",width = 5.0)
    private Integer id;
    @Excel(name = "姓名",width = 5.0)
    private String name;
    @Excel(name = "类型",width = 5.0)
    private String type;
    @Excel(name = "图片",width = 15.0)
    private String image;
    @Excel(name = "描述",width = 15.0)
    private String description;
    @Excel(name = "价格",width = 5.0)
    private Integer price;
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getPrice() {
        return price;
    }
    public void setPrice(Integer price) {
        this.price = price;
    }
    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", image='" + image + '\'' +
                ", description='" + description + '\'' +
                ", price=" + price +
                '}';
    }
}
